Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

✨ (entity selector) feedback #3501

Merged
merged 1 commit into from
May 3, 2024
Merged

Conversation

sophiamersmann
Copy link
Member

@sophiamersmann sophiamersmann commented Apr 16, 2024

Small bug fixes and improvements coming out of design review:

(What Marwa said is in quotes)

  • "The hover effect of the close button is different from the designs"
  • "The hover effect is missing on the entity rows"
  • "The “close” button is distorted on mobile"
  • "It would be nice (but not a must) if after a user scrolls a lot, they can click on the are on top to scroll back to the top of the list"
  • "I feel like when we have radio buttons, the user needs some kind of feedback that they’ve selected an entity. So instead of closing the modal immediately after selection, it would be good to see it selected."
  • "I think this was an issue in the past but the viewport does not zoom out after the user is done typing and selecting (i think it should)"
    • The only "fix" that I'm aware of is setting the font size to 16px which looks bad, so I guess we'll have to live with this one...
  • "“Sort by” should be Gray 70"

Not clear how to address:

  • "The animation is really nice when the user is close to the “selected” list but once they get further, it gets a bot strange… I’m not 100% sure how that could be fixed but it does seem a bit choppy"
    • We can't really slow down the item that travels to the top because then it would take forever to get there... but I did try to slow down the items around the selected one, so that it's hopefully a bit more obvious that we just moved it to the top
  • "It might make sense to have the selection visible at the top of the list. I think it’s a bit weird that we have Germany and Europe that are not in alphabetical order (because of the current location) but then again the actual selection (which is the most important thing to see in this case) is buried somewhere else in the list."
    • I tried to make it so that, upon selecting, the previously selected item doesn't get animated and just disappears from the top and reappears in its original position, but that was even weirder than swapping..

To do before merging:

  • Replace rem with px
  • Show "World" on top with a globe icon (was weird)

@sophiamersmann sophiamersmann force-pushed the entity-selector-drawer branch from 3f1c935 to 58508ee Compare April 16, 2024 16:01
@sophiamersmann sophiamersmann force-pushed the entity-selector-feedback branch 3 times, most recently from e11f882 to 77143f6 Compare April 16, 2024 16:59
@sophiamersmann sophiamersmann force-pushed the entity-selector-drawer branch from 58508ee to 6ab8ca9 Compare April 17, 2024 10:35
@sophiamersmann sophiamersmann force-pushed the entity-selector-feedback branch 3 times, most recently from 36952bb to fc29c1a Compare April 17, 2024 16:16
@sophiamersmann sophiamersmann mentioned this pull request Apr 17, 2024
11 tasks
@sophiamersmann sophiamersmann marked this pull request as ready for review April 18, 2024 08:02
@sophiamersmann sophiamersmann force-pushed the entity-selector-drawer branch from 6ab8ca9 to a3b2213 Compare April 18, 2024 08:09
@sophiamersmann sophiamersmann force-pushed the entity-selector-feedback branch from fc29c1a to 6d85d8d Compare April 18, 2024 08:09
Comment on lines 605 to 608
if (this.props.onDismiss) {
this.dismissTimer = setTimeout(() => {
if (this.props.onDismiss) this.props.onDismiss()
}, 250)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I see Marwa's comment that was suggesting this, but I think this now feels even weirder than it did before.
You can just about glimpse that something is animating, but then it the modal just closes on you without notice, and that feels quite broken.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yeah you're right, I think I implemented this before adding the animation..

In that case, Marwa said to just keep the modal open :)

Comment on lines -971 to -942
<div className="footer__selected">
{selectedEntityNames.length > 0 ? (
<>
Current selection:
<span className="entity-name">
{selectedEntityNames[0]}
</span>
</>
) : (
"Empty selection"
)}
</div>
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Was removing this also due to Marwa's feedback? I felt like it worked quite well.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I also liked it! But Marwa felt that having the local entities on top but the selected one buried in the list was weird (which I can kind of see). And then, if we have the selected entity on top, there is no need to show it in the footer as well.

@sophiamersmann sophiamersmann force-pushed the entity-selector-drawer branch from a3b2213 to 16ebb02 Compare April 26, 2024 12:23
@sophiamersmann sophiamersmann force-pushed the entity-selector-feedback branch from 6d85d8d to c7553fc Compare April 26, 2024 12:23
@sophiamersmann sophiamersmann force-pushed the entity-selector-drawer branch from 16ebb02 to f4672f3 Compare April 26, 2024 17:04
@sophiamersmann sophiamersmann force-pushed the entity-selector-feedback branch from c7553fc to b4f1190 Compare April 26, 2024 17:04
@sophiamersmann sophiamersmann force-pushed the entity-selector-drawer branch from f4672f3 to b02c8f4 Compare May 1, 2024 13:07
@sophiamersmann sophiamersmann force-pushed the entity-selector-feedback branch from b4f1190 to 284ae76 Compare May 1, 2024 13:07
@owidbot
Copy link
Contributor

owidbot commented May 1, 2024

Quick links (staging server):

Site Admin Wizard

Login: ssh owid@staging-site-entity-selector-feedback

SVG tester: Number of differences (default views): 1237

Number of differences (all views): 389

Edited: 2024-05-03 08:02:10 UTC
Execution time: 1.16 seconds

@sophiamersmann sophiamersmann force-pushed the entity-selector-feedback branch 5 times, most recently from ce4d61a to ce84260 Compare May 2, 2024 08:58
@sophiamersmann sophiamersmann force-pushed the entity-selector-feedback branch 3 times, most recently from 3d2fa21 to d4e8a62 Compare May 2, 2024 13:40
@sophiamersmann sophiamersmann force-pushed the entity-selector-drawer branch from b02c8f4 to bef0398 Compare May 2, 2024 14:03
@sophiamersmann sophiamersmann force-pushed the entity-selector-feedback branch 3 times, most recently from 6bdfd0e to 17e00e3 Compare May 3, 2024 07:52
Copy link
Member Author

sophiamersmann commented May 3, 2024

Merge activity

@sophiamersmann sophiamersmann force-pushed the entity-selector-drawer branch from bef0398 to 2dda98c Compare May 3, 2024 08:25
Base automatically changed from entity-selector-drawer to master May 3, 2024 08:26
@sophiamersmann sophiamersmann force-pushed the entity-selector-feedback branch from 17e00e3 to b1d96e1 Compare May 3, 2024 08:27
@sophiamersmann sophiamersmann merged commit c9a9bd8 into master May 3, 2024
11 of 17 checks passed
@sophiamersmann sophiamersmann deleted the entity-selector-feedback branch May 3, 2024 08:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants